<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0 auto;
        }

        .box, .box1, .box2, .box3, .box4 {
            width: 1000px;
            height: 1200px;
        }
        
        .box {
            background-color: peachpuff;
        }

        .box1 {
            background-color: purple;
        }

        .box2 {
            background-color: green;
        }

        .box3 {
            background-color: yellow;
        }

        .box4 {
            background-color: gray;
        }

        .tip {
            position: absolute;
            top: 150px;
            right: 0;
            width: 50px;
            height: 150px;
            background-color: purple;
        }
    </style>
    <script src="./js/ex006返回顶部.js"></script>
</head>
<body>
    <div class="box"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    <div class="box4"></div>
    <div class="tip">返回顶部</div>
</body>
</html>